package cn.helios.org.mapper;

import cn.helios.org.domain.Department;
import cn.helios.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {

    // 查询所有
    List<Department> loadAll();

    // 根据Id查询
    Department loadById(Long id);

    // 根据Id删除
    void remove(Long id);

    // 新增
    void save(Department department);

    // 根据Id修改
    void update(Department department);

    // 分页+高级查询
    List<Department> queryData(DepartmentQuery departmentQuery);

    // 查询总条数
    Integer queryCount(DepartmentQuery departmentQuery);


}
